<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=750,user-scalable=no" />  <meta content="yes" name="apple-mobile-web-app-capable">  <meta content="black" name="apple-mobile-web-app-status-bar-style">  <meta content="telephone=no" name="format-detection">

    <title>{{.setting.webTitle}}-搜索</title>
    <meta name="keywords" content="{{.setting.webKeywords}}" />
    <meta name="description" content="{{.setting.webDesc}}" />
    <link rel="stylesheet" href="/public/front/pc/search/css/ht-sty.css">
    <link rel="stylesheet" href="/public/front/pc/search/js/dateSelect.css">
    <style type="text/css">
        .li_button{
            padding-top: 10px;
            font-size: 14px;
            line-height: 24px;
            color: #666666;
            display: block;
            border-bottom: 1px dashed #666666;
            width: 80%;
        }
    </style>
</head>

<body class="bodybg4">
<div class="hearer-i clearfloat">
    <div class="nbox">
        <div class="logo">{{/*<img src="/public/front/pc/search/images/logo.png">*/}}{{.setting.webTitle}}</div>
       {{/* <div class="right-con">
            <a href="/"><img src="/public/front/pc/search/images/top-ico1.png">返回首页</a>
        </div>*/}}
    </div>
</div>
<!--内容页-->
<div class="liuc-con">

    <div class="search_box">
        <div class="juzhongbox">
            <div class="ss_con">
                <form id="searchForm" action="/search{{.SearchType}}" method="get">
                    <div class="searchGoHome" style="position: absolute;
                                                    top: -20px;
                                                    left: -170px;
                                                    background-color: rgba(255, 255, 255, .1);
                                                    margin-right: 20px;
                                                    height: 40px;
                                                    width: 123px;
                                                    margin-top: 20px;
                                                    border-radius: 5px;
                                                    border: 1px solid #adc3fe;">
  <a href="/" style="font-size: 16px;
    color: #f4f4f7;
    line-height: 40px;
    width: 122px;
    float: left;
    background-color: #07a3ee;
    text-align: center;
"><img src="/public/front/pc/search/images/top-ico1.png" style="position: relative;top: 3px;margin-right: 5px;">返回首页</a>
                    </div>
                <input type="text" class="s_txt" name='keyword' id='search' placeholder="输入信息搜索" value="{{.keyword}}"><a class="s_btn" id="searchSubmit">查询</a>
                </form>
            </div>
        </div>
    </div>
    <div class="liuc_tabbox">
        <div class="tab_bom">
            <ul id="one11">
                <li>
                    <div style="width: 100%;height: auto">
                        {{Adv "search_adv1"}}
                    </div>
                </li>
                {{range $i, $v := .list}}
                <li>
                    <h3 class="titleH3" id="{{$v.ID}}"><img src="/public/front/pc/search/images/ico_wd.png">{{$v.Title}}</h3>
                    <p>{{$v.Desc | TrimHtml}}</p>
                    <span>发布日期 ：{{$v.CreatedAt | TimeToDate}}   ｜ 访问次数 ：{{$v.Hits}}  </span>
                    <a href="/detail/{{$v.ID}}">马上访问</a>
                    <p class="li_button"></p>
                </li>
                {{end}}
            </ul>
            <div class="page_box">
                <div id="pagination" class="page fl"></div>
            </div>
        </div>
        <div class="right_adv">
            {{Adv "search_adv"}}
        </div>
        <div style="clear: both"></div>
    </div>

</div>

<div class="foot">{{.setting.webFooter | strToHtml}}</div>
</body>
</html>
<script type="text/javascript" src="/public/front/pc/search/js/jquery-1.8.3.min.js"></script>
<link href="/public/front/page/css/jquery.pagination.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/public/front/page/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/front/page/js/jquery.pagination.min.js"></script>
<script type="text/javascript" >
    $(function () {
        $('.titleH3').click(function () {
            window.location = "/detail/"+$(this).attr("id")
        });

        $('#searchSubmit').click(function () {
            if($('#search').val() == '' || $('#search').val() == '请输入关键字'){
                alert("请输入搜索内容！")
                return
            }
            $('#searchForm').submit()
        });

        $("#pagination").pagination({
            currentPage: {{.pages.current}},
            totalPage: {{.pages.pageNum}},
            isShow: true,
            count: 5,
            homePageText: "首页",
            endPageText: "尾页",
            prevPageText: "上一页",
            nextPageText: "下一页",
            callback: function(current) {
                window.location = "/search{{.SearchType}}?keyword={{.keyword}}&page="+current
            }
        });
    });
</script>